package com.spring.cloud.practice.demo.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b><code>ConfigController</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2019/8/2 15:25.
 *
 * @author huanghuayan
 * @since spring-cloud-demo
 */
@RestController
public class ConfigController {

    @Value("${foo}")
    private String foo;

    @RequestMapping("getConfig")
    public String getConfig() {
        return "This config is " + foo;
    }
}
